package cn.zzuli.shiyan5;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class InputActivity extends AppCompatActivity {
     WebView webView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_input);
       Intent intent=getIntent();
       String url=intent.getStringExtra("link");
       webView=findViewById(R.id.wv);
        webView.setWebViewClient(new WebViewClient(){
         public boolean shouldOverrideUrlLoading(WebView view,String url){
             view.loadUrl(url);
             return  true;
         }
     });
     webView.loadUrl(url);
    }
}